package decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 装饰器模式-第二次装饰
 * @Date: Created in 2021/12/29 11:13
 */
@Slf4j
public class ConcreteDecorate1 extends Decorate {
    public ConcreteDecorate1(Component component) {
        super(component);
    }

    public void method2() {
        log.info("method2");
    }

    @Override
    public void operate() {
        this.method2();
        super.operate();
    }
}
